<template style="background: #f5f6fa">
  <div class="typical-home" ref="portaletDiv"></div>
</template>
<script>
import allIcon from "@/core/icons";
export default {
  name: "DashboardIndex",
  props: {
    bannerType: {
      type: String,
      default: "1",
    },
  },
  data() {
    return {
      visible: false,
      spinning: false,
      delayTime: 100,
      dataList: [
        {
          path: "/org/user",
          icon: "pound",
          title: "用户管理",
        },
        {
          path: "/org/dept",
          icon: "lock",
          title: "部门管理",
        },
        {
          path: "/org/post",
          icon: "unlock",
          title: "岗位管理",
        },
        {
          path: "/auth/role",
          icon: "book",
          title: "角色管理",
        },
        {
          path: "/monitor/druid",
          icon: "calendar",
          title: "数据监控",
        },
        {
          path: "/auth/sysAuth",
          icon: "code",
          title: "菜单授权",
        },
        {
          path: "/tool/gen",
          icon: "copy",
          title: "代码生成",
        },
        {
          path: "/sysSetting/menu",
          icon: "windows",
          title: "菜单管理",
        },
        {
          path: "/sysSetting/dict",
          icon: "aliwangwang",
          title: "字典管理",
        },
        {
          path: "/sysSetting/config",
          icon: "code",
          title: "参数设置",
        },
        {
          path: "/log/operlog",
          icon: "contacts",
          title: "操作日志",
        },
        {
          path: "/log/loginLog",
          icon: "api",
          title: "登录日志",
        },
      ],
      changyongResultMenus: [], // 添加常用应用查询结果集合
      menus: [],
      sortable: undefined,
      buildMenus: [], // 重构菜单结构，用于首页显示
      activeChangyongTabKey: "tab0",
      colorList: ["#5584fd", "#3470ff", "#ff8801", "#00d6b9", "#7e3bf3"],
      allIcon: allIcon,
    };
  },
  computed: {},
  mounted() {},
  watch: {},
  created() {},
  methods: {
    getMenuColor(index) {
      return this.colorList[index % 4];
    },
    addTabMenu(path) {
      this.$router.push({
        path: path,
      });
    },
  },
};
</script>
<style lang="less">
@import "../typical-home.less";
.ant-list-item-drag {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  z-index: 9999;
  border: 1px solid #dee0e3;
}
.common-iconbtn .anticon {
  margin: 0px 5px;
  color: rgba(0, 0, 0, 0.35);
  font-size: 16px;
}
.common-iconbtn .anticon-menu {
  cursor: move;
}
</style>
